from tos import *

am = AM()

def main():

    msg = ActiveMessage()
    msg.destination = 65535
    msg.group = 34
    msg.data = [0, 0, 0, 47]
    msg.length = 4
    am.write(msg, 0)
    print msg

if __name__ == "__main__":
    main()
